package bdz.projects.lavender.cms.model
{
	public class PropertyData extends ObjectBase
	{
		public var parentHasWrite:Boolean;
		public function PropertyData(xm:XML)
		{
			super(xm);
		}
		public function get value():String{
			return raw.valueOf().toString();
		}
		public function set value(val:String):void{
			var nxm:XML = new XML("<property><![CDATA["+val+"]]></property>");
			var attlist:XMLList = raw.@ * ;
			for each(var atts:* in attlist) {
				nxm["@"+atts.name().toString()] = atts.toString();
			}
			raw = nxm.copy();
			nxm = null;
		}
		override public function toXML():XML {
			return raw;
		}
	}
}